package com.kepler.social.app.converter;

import com.kepler.social.domain.port.vo.CreateMoodCaseVo;
import com.kepler.social.domain.user.mood.vo.CreateMoodVo;

import java.util.Objects;

public class UserMoodCaseConverter {

    public static CreateMoodVo createMoodVo(CreateMoodCaseVo caseVo) {
        assert Objects.nonNull(caseVo);
        return CreateMoodVo.builder()
                .content(caseVo.getContent())
                .title(caseVo.getTitle())
                .postType(caseVo.getPostType())
                .location(caseVo.getLocation())
                .build();
    }

}
